package com.blb.community.mapper;

import com.blb.community.entity.ZyRepair;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 报修信息 Mapper 接口
 * </p>
 *
 * @author 帅帅
 * @since 2022-07-02
 */
public interface ZyRepairMapper extends BaseMapper<ZyRepair> {

    /**
     * 查询所有
     * @return
     */
    List<ZyRepair> selectRepairAll();

    /**
     * 查询报修信息列表
     * @param zyRepair 对象
     * @param nowPage 当前页
     * @param pageSize 页面数据
     * @return
     */
    List<ZyRepair> selectZyRepairList(@Param("zyRepair") ZyRepair zyRepair, @Param("nowPage")int nowPage, @Param("pageSize")int pageSize);

    /**
     * 修改报修信息
     * @param zyRepair
     * @return
     */
    int updateRepair(ZyRepair zyRepair);

}
